import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
const store = new Vuex.Store({
  state: {
    indexmsg: 0
  },
  mutations: {
    changeindex (state) {
      state.indexmsg++
    }
  },
  actions: {
    changeindex ({ commit }) {
      commit('changeindex')
    }
  }
})
export default store
